package com.superdry.activity;

import com.drysurper.R;
import com.superdry.guide.GuideActivity;
import com.superdry.main.MainActivity;
import com.superdry.utils.SPHelper;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class WelcomeActivity extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.aty_welcome);
		
		//第一次为false
		if(!SPHelper.getBoolean(WelcomeActivity.this, "isFirst")){
			
			Intent mIntent  = new Intent();
			mIntent.setClass(WelcomeActivity.this, GuideActivity.class);
			startActivity(mIntent);
			finish();
		}else{
			Intent mIntent  = new Intent();
			mIntent.setClass(WelcomeActivity.this, MainActivity.class);
			startActivity(mIntent);
			finish();
		}
			
		
	}
}
